// @ts-check
// import { } from "loader-runner/package.json";
import { runLoaders } from "loader-runner";
// import {} from "loader-utils"
// import tapable from "tapable";
import { p2 } from "../../shared/p2.mjs";

runLoaders(
  // eslint-disable-next-line no-warning-comments
  // @ts-ignore
  {
    resource: p2("postcss/css-loader-case.css"),
    loaders: ["css-loader"],
    context: {
      getOptions() {
        return {
          minimize: true,
          sourceMap: true,
        };
      },
      _compilation: {
        outputOptions: {},
      },
    },
  },
  (err, res) => {
    if (err) {
      console.error("❌ 加载器运行时出错:", err);
      return;
    }
    console.log("🎉 加载器运行成功!");
    console.log(res);
  },
);
